from fastapi import FastAPI
from app.helper import template_init, register_redis
from app.routers.routers import main_routers


def create_app() -> FastAPI:
    app = FastAPI(title='文档中心', version='0.0.1', description='应用接口')
    register_redis(app)
    template_init(app)
    app.include_router(main_routers)
    return app
